]> dgit.raspbian.org Git - gnome-shell.git/commit
st/widget: Fix applying :insensitive to initially unreactive widgets
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 7 Feb 2021 22:21:55 +0000 (23:21 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 7 Feb 2021 22:48:32 +0000 (23:48 +0100)
commit473e77e2c5ab380dcfcaefab699ed8cbff3ae915
treee7f828aa18ceca04fcebc32200bf51ecb1a17937
parentd75b64b88f348c43c52cc7a94b70cfedc2154852
st/widget: Fix applying :insensitive to initially unreactive widgets

We are applying the :insensitive pseudo class to unreactive widgets,
or at least we are supposed to. As we currently only update the style
on notify, we don't apply it to initially unreactive widgets.

This was covered up partially until recently when Clutter started to
use G_PARAM_EXPLICIT_NOTIFY. Before that, the notify handler would run
when explicitly setting :reactive to FALSE at construction time.

Make sure we always apply the pseudo class correctly by updating it
after construct properties have been set.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3685

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1648>
src/st/st-widget.c
src/st/test-theme.c